package com.example.demo.enums;

/**
 * @Author zhengmf
 * @Date 2019/1/19  16:38
 */
public enum SysConfigEnum {

    RESET_PWD_VALUE("RESET_PWD_VALUE","123456#Znwg","重置密码配置KEY"),
    PASSWORD_MODIFY_TIMES("PASSWORD_MODIFY_TIMES","3","用户修改密码不得与前n次相同"),
    IS_WEAK_PWD_VERIFY("IS_WEAK_PWD_VERIFY","Y","是否弱密码校验Y/N,不配置默认不校验"),
    MAX_ONLINE_SESSION_NUM("MAX_ONLINE_SESSION_NUM","1","最大在线会话数"),
    ROLE_VALIDITY_PERIOD("ROLE_VALIDITY_PERIOD","180","角色有效期"),
    ACCOUNT_VALID_DAYS("ACCOUNT_VALID_DAYS","90","账号有效天数"),
    PWD_VALID_DAYS("PWD_VALID_DAYS","90","密码有效天数"),
    PWD_PROMPT_DAYS("PWD_PROMPT_DAYS","70","密码到期提示天数"),
    CHANGE_PWD_NEXTTIME_LOGIN("CHANGE_PWD_NEXTTIME_LOGIN","N","下次登录必须修改密码"),
    ACCOUNT_LOCKOUT("ACCOUNT_LOCKOUT","90","账号锁定策略"),
    IS_USER_NAME_VERIFY("IS_USER_NAME_VERIFY", "Y", "用户名只能包含数字、字母、下划线，默认验证"),
    ACCOUNT_DISABLED("ACCOUNT_DISABLED","90","账号停用策略"),
    DEFAULT_SYSTEM_STYLE_TYPE("DEFAULT_SYSTEM_STYLE_TYPE","3","默认系统风格类型"),
    USER_REGULAR("USER_REGULAR", "账号验证正则", "\\w+");

    private String key;
    private String value;
    private String desc;

    SysConfigEnum( String key , String value, String desc) {
        this.key = key;
        this.value = value;
        this.desc = desc;
    }


    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }}
